﻿<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl<QLDAOL.ModelView.InBoxModel>" %>
<div id="div_newmail">    
<% using (Html.BeginForm(null, null, FormMethod.Post, new { id = "formmail" })) 
{%>
                  
     <table>
     <tr>
      <td>
       <label>Tiêu đề</label>
      </td>
       <td>
               <%: Html.TextBoxFor(m => m.title, new { @class = "required" })%>
               <span class="rq"> * </span></label>
               <%: Html.ValidationMessageFor(m => m.title)%>
         </td>
     </tr>
     <tr>
      <td>
       <label>Người nhận</label>
      </td>
       <td>
               <%: Html.TextBoxFor(m => m.username, new { @class = "required" })%>
                <span class="rq"> * </span></label>
               <%: Html.ValidationMessageFor(m => m.username)%>
         </td>
     </tr>
     <tr>
      <td>
       <label>Nội dung</label>
      </td>
       <td>
               <%: Html.TextAreaFor(m => m.Description, new {@class = "required" , id = "Description2" })%>
               <%: Html.ValidationMessageFor(m => m.Description)%>
         </td>
     </tr>
     <tr>
        <td>
           <input type="submit" value="Gửi" id="btn_newmail" />
        </td>
     </tr>
     </table>
     <%} %>
</div>
